/**
 * 
 */
package wong.board.client.widgets;

import wong.board.client.Board;
import wong.board.client.resources.BoardBundle.BoardCss;
import wong.board.client.resources.BoardBundle.WidgetsCss;

import com.google.gwt.user.client.ui.Composite;

/**
 * @author wong
 * 
 */
public abstract class Container extends Composite {
	protected static final BoardCss boardCss = Board.getBundle().boardCss();
	protected static final WidgetsCss widgetsCss = Board.getBundle().widgetsCss();
	private Content container;

	public Container() {
		container = createContainer();
		container.asWidget().setStyleName(widgetsCss.container());
		initWidget(container.asWidget());
	}

	protected Content createContainer() {
		return new ContentPanel();
	}

	protected Content getContainer() {
		return container;
	}

}
